﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/pages/safeai/jsp/common/taglibs.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>优惠券详情</title>
<link href="css/together.css" rel="stylesheet" type="text/css" />
<script language="javascript">      
	function gotoPage(pageOffset, pageSize) {
			var form = document.getElementsByTagName("form")[0];
			form.elements["pager.offset"].value = pageOffset;
			form.elements["pageSize"].value = pageSize;
			form.submit();
	}
</script>
</head>

<body>
<form action="${ctx}/ecoupon.do" method="post">
<input type="hidden" id="itsMethod" name="method" value="info"/>
<input type="hidden" name="lagoid" value="${ecoupon.lagoid}"/>
<table align="center" width="98%">
	<tr>
    	<th colspan="4" height="25px">优惠券基本信息</th>
  </tr>
    <tr>
    	<td class="td_01" nowrap width="14%">优惠名称：</td>
        <td class="td_04">${ecoupon.name}</td>
        <td class="td_01" nowrap width="14%">状态：</td>
        <td class="td_04">
			<logic:equal name="ecoupon" property="struts" value="0">
					有效
			</logic:equal>
		    <logic:notEqual name="ecoupon" property="struts" value="0">
					无效
			</logic:notEqual>
		</td>
    </tr>
    <tr>
    	<td class="td_01" nowrap>生效日期：</td>
        <td class="td_04" nowrap>${ecoupon.startimeStr}</td>
        <td class="td_01" nowrap>失效日期：</td>
        <td class="td_04" nowrap>${ecoupon.endtimeStr}</td>
    </tr>
    <tr>
    	<td class="td_01" nowrap>描述信息：</td>
        <td colspan="3" class="td_04">
        	${ecoupon.description}	
        </td>
    </tr>
    <tr>
    	<td class="td_01" nowrap>产品类别：</td>
        <td class="td_04">${catalogName}&nbsp;</td>
        <td class="td_01" nowrap>品牌：</td>
        <td class="td_04">${Brand}&nbsp;</td>
    </tr>
    <tr>
    	<td class="td_01">具体产品：</td>
        <td class="td_04">${productName}&nbsp;</td>
        <td class="td_01" nowrap>订单金额下限：</td>
        <td class="td_04">${ecoupon.minmoney}&nbsp;</td>
    </tr>
    <tr>
    	<td class="td_01" nowrap>优惠券金额：</td>
        <td class="td_04">${ecoupon.favourablemoney}&nbsp;</td>
        <td class="td_01" nowrap>允许使用次数：</td>
        <td class="td_04">${ecoupon.maxtimes}&nbsp;</td>
    </tr>
    <tr>
    		<td class="td_01" nowrap>优惠券张数：</td>
       	    <td class="td_04">${zhangshu}&nbsp;</td>
        <logic:present name="noprovide">
        	<td class="td_01">${noprovide}</td>
        </logic:present>
        <logic:present name="provide">
        	<td class="td_01" nowrap>发放方式：</td>
            <td class="td_04">
            	<logic:equal name="ecoupon" property="mark" value="1">
            		用户注册赠积分
            	</logic:equal>
            	<logic:equal name="ecoupon" property="mark" value="2">
            		消费满额赠积分
            	</logic:equal>
            	<logic:equal name="ecoupon" property="mark" value="3">
            		导入Excel赠积分
            	</logic:equal>
            	<logic:equal name="ecoupon" property="mark" value="4">
            		其他
            	</logic:equal>
            &nbsp;</td>
        </logic:present>
    </tr>
</table>

<table align="center" width="98%">
 <logic:present name="provide">
	<tr>
    	<th colspan="5" height="25px" class="td_01">优惠券详情信息</th>
    </tr>
	<tr>
    	<th class="td_01" height="25px">优惠券ID</th>
      	<th class="td_01">优惠券编号</th>
      	<th class="td_01">已使用次数</th>
        <th class="td_01">兑换用户</th>
        <th class="td_01">销售单号</th>
    </tr>
    	<logic:iterate id="tmp" name="provide">
    	<tr>
    		<td class="td_03">${tmp.id}</td>
        	<td class="td_03">${tmp.ecouponno}</td>
        	<td class="td_03">${tmp.usertimes}</td>
        	<td class="td_03">${tmp.orderusername}</td>
        	<td class="td_03">${tmp.orderno}</td>
    	</tr>
    	</logic:iterate>
    	<!-- <tr>
    		<td colspan="5" align="right">
        		首页......&nbsp;&nbsp;&nbsp;&nbsp;
        	</td>
    	</tr>
    	 -->
    	 <tr>
  			<td align="right" colspan="7"><%@ include file="/pages/safeai/jsp/common/page.jsp"%></td>
 		 </tr>
</logic:present>
</form>
    <logic:present name="provide">
    <tr>
    <html:form action="/ecoupon.do?method=download" method="post" enctype="multipart/form-data">
    	<input type="hidden" name="ecoupon.lagoid" value="${ecoupon.lagoid}"/>
        <td colspan="5" align="center">导出Excel&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" class="btn" value="开始导出"/></td>
    </html:form>
    </tr>
    </logic:present>
</table>
</body>
</html>
